﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ActionLogList.ascx.cs"
    Inherits="DMS.Web.Common.Controls.ActionLogList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="diy" %>
<asp:UpdatePanel ID="up_UserList" runat="server">
    <ContentTemplate>
        <%--搜索栏--%>
        <div id="dvSearch" runat="server" class="search">
            <!----------- 查询信息 ------------------>
            <table width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="ico">
                        <a href="javascript:changeView('1')" style="display: none;">
                            <img src="/themes/default/ico_have.gif" id="ico_1" border="0"></a>
                    </td>
                    <td class="form">
                        <table cellpadding="0" cellspacing="0" width="100%">
                            <tr>
                                <th>
                                    <nobr>
                                        操作类型：
                                    </nobr>
                                </th>
                                <td>
                                    <asp:DropDownList ID="ddlOperateCodeList" runat="server" DataTextField="OperationCode"  Width="120px" DataValueField="OperationCode">
                                    </asp:DropDownList>
                                </td>
                                <th>
                                    <nobr>
                                        操作人：
                                    </nobr>
                                </th>
                                <td>
                                    <nobr>
                                        <asp:TextBox ID="txtOperateUser" runat="server" Width="80px"></asp:TextBox>
                                    </nobr>
                                </td>
                                <th>
                                    <nobr>
                                        操作内容：
                                    </nobr>
                                </th>
                                <td>
                                    <asp:TextBox ID="txtOperationContent" runat="server" Width="120px"></asp:TextBox>
                                </td>
                                <th>
                                    <nobr>
                                        操作时间：
                                    </nobr>
                                </th>
                                <td>
                                    <nobr>
                                        <asp:TextBox ID="txtBeginTime" runat="server" showType="0" onClick="WdatePicker()" Width="110px"></asp:TextBox>
                                        &nbsp;至&nbsp;
                                        <asp:TextBox ID="txtEndTime" runat="server" showType="0" onClick="WdatePicker()" Width="110px"></asp:TextBox>
                                    </nobr>
                                </td>
                                <th>
                                </th>
                                <td class="button">
                                    <nobr>
                                        <asp:LinkButton ID="btnQuery" runat="server" OnClick="btnQuery_Click"><img src="../../../Themes/Default/btn_search.gif" /></asp:LinkButton>
                                    </nobr>
                                </td>
                            </tr>
                        </table>
                    </td>
                </tr>
            </table>
        </div>
        <%--数据列表--%>
        <asp:DataGrid ID="dgLogList" runat="server" AutoGenerateColumns="false" Width="100%"
            CssClass="dg_borderstyle">
            <HeaderStyle HorizontalAlign="Center" />
            <ItemStyle CssClass="dg_itemstyle" />
            <AlternatingItemStyle CssClass="dg_alternatingitemstyle" />
            <Columns>
                <asp:TemplateColumn HeaderText="操作类型">
                    <ItemStyle HorizontalAlign="Center" Width="100px" />
                    <ItemTemplate>
                        <div title="<%#Eval("OperationCode") %>" style="overflow: hidden; text-overflow: ellipsis;
                            width: 100px;">
                            <nobr>
                                <%#Eval("OperationCode")%>
                            </nobr>
                        </div>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="操作内容">
                    <ItemTemplate>
                        <%#Eval("OperationContent")%>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="操作人">
                    <ItemStyle HorizontalAlign="Center" Width="80px" />
                    <ItemTemplate>
                        <%#Eval("Operator")%>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="操作时间">
                    <ItemStyle HorizontalAlign="Center" Width="100px" />
                    <ItemTemplate>
                        <div title="<%#Eval("OperateTime") %>" style="overflow: hidden; text-overflow: ellipsis;
                            width: 100px;">
                            <nobr>
                                <%#Eval("OperateTime")%>
                            </nobr>
                        </div>
                    </ItemTemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="操作" Visible="false">
                    <ItemStyle Width="50px" HorizontalAlign="Center" />
                    <ItemTemplate>
                        <nobr>
                        </nobr>
                    </ItemTemplate>
                </asp:TemplateColumn>
            </Columns>
        </asp:DataGrid>
        <div id="dvPager" class="PagerHolder">
            <diy:AspNetPager ID="pager" runat="server" AlwaysShow="true" OnPageChanged="pager_PageChanged"
                Width="100%" ShowPageIndexBox="Always" PageIndexBoxType="TextBox" TextBeforePageIndexBox="转到"
                TextAfterPageIndexBox="页" ShowCustomInfoSection="Left" CustomInfoHTML="总数：%RecordCount%，共 %PageCount% 页，当前为第%CurrentPageIndex%页"
                HorizontalAlign="right" FirstPageText="首页" PrevPageText="上页" NextPageText="下页"
                LastPageText="末页" CssClass="dg_pagestyle">
            </diy:AspNetPager>
        </div>
        <div id="dvEmpty" runat="server" class="EmptyMsg" visible="false">
            没有查询到相应的操作信息。
        </div>
    </ContentTemplate>
</asp:UpdatePanel>
